home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / rulermover.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-10-27  |  2.0 KB  |  59 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. /***************************************************************************
  8.                           rulermover.h  -  description
  9.                              -------------------
  10.     begin                : Sun Jul 24 2005
  11.     copyright            : (C) 2005 by Franz Schmid
  12.     email                : Franz.Schmid@altmuehlnet.de
  13.  ***************************************************************************/
  14.  
  15. /***************************************************************************
  16.  *                                                                         *
  17.  *   This program is free software; you can redistribute it and/or modify  *
  18.  *   it under the terms of the GNU General Public License as published by  *
  19.  *   the Free Software Foundation; either version 2 of the License, or     *
  20.  *   (at your option) any later version.                                   *
  21.  *                                                                         *
  22.  ***************************************************************************/
  23.  
  24. #ifndef RULERMOVER_H
  25. #define RULERMOVER_H
  26.  
  27. #include <QWidget>
  28. #include <QMouseEvent>
  29.  
  30. #include "scribusapi.h"
  31. class RulerGesture;
  32. class ScribusView;
  33.  
  34. class SCRIBUS_API RulerMover : public QWidget
  35. {
  36.     Q_OBJECT
  37.  
  38. public:
  39.     RulerMover(ScribusView *pa);
  40.     ~RulerMover() {};
  41.     void mouseDoubleClickEvent(QMouseEvent *);
  42.     void mousePressEvent(QMouseEvent *m);
  43.     void mouseReleaseEvent(QMouseEvent *m);
  44.     void mouseMoveEvent(QMouseEvent *m);
  45.     bool Mpressed;
  46.  
  47. private slots:
  48.     void resetRulers();
  49.     void moveRulerTopRight();
  50.     void moveRulerBottomLeft();
  51.     void moveRulerBottomRight();
  52.     void moveRulerCenter();
  53. private: // Private attributes
  54.     ScribusView *currView;
  55.     RulerGesture* rulerGesture;
  56. };
  57.  
  58. #endif
  59.